package com.nmgdz.bigdata.service.impl;


import com.nmgdz.bigdata.dao.UserDao;
import com.nmgdz.bigdata.entity.User;
import com.nmgdz.bigdata.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceimpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> querByage(int age) {
        return userDao.findbyage(age); }

    @Override
    public User save(User user) { return null; }

    @Override
    public void deletUserByid(int id) { userDao.deleteById(id); }

    @Override
    public User querByid(int id) {
        return userDao.getOne(id); }


}

